package com.isoft.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 航班时间信息表-存储各业务环节时间点
 * @TableName FLIGHT_TIMES
 */
@TableName(value ="FLIGHT_TIMES")
@Data
public class FlightTimes implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long TIME_ID;

    /**
     *
     */
    private Long FLIGHT_ID;

    /**
     * 本站开始登机时间(国内/地区)
     */
    private Date BORT;

    /**
     * 开始登机时间(混合航班国际部分)
     */
    private Date MBOR;

    /**
     * 过站登机时间(国内/地区)
     */
    private Date TBRT;

    /**
     * 过站登机时间(混合航班国际)
     */
    private Date MTBR;

    /**
     * 催促登机时间(国内/地区)
     */
    private Date LBDT;

    /**
     * 催促登机时间(混合航班国际)
     */
    private Date MLBD;

    /**
     * 结束登机时间(国内/地区)
     */
    private Date POKT;

    /**
     * 结束登机时间(混合航班国际)
     */
    private Date MPOK;

    /**
     * 值机预计开始时间1(国内/地区)
     */
    private Date FCES;

    /**
     * 值机预计结束时间1(国内/地区)
     */
    private Date FCEE;

    /**
     * 值机实际开始时间1(国内/地区)
     */
    private Date FCRS;

    /**
     * 值机实际结束时间1(国内/地区)
     */
    private Date FCRE;

    /**
     * 值机预计开始时间2(混合航班国际)
     */
    private Date MCES;

    /**
     * 值机预计结束时间2(混合航班国际)
     */
    private Date MCEE;

    /**
     * 值机实际开始时间2(混合航班国际)
     */
    private Date MCRS;

    /**
     * 值机实际结束时间2(混合航班国际)
     */
    private Date MCRE;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FlightTimes other = (FlightTimes) that;
        return (this.getTIME_ID() == null ? other.getTIME_ID() == null : this.getTIME_ID().equals(other.getTIME_ID()))
                && (this.getFLIGHT_ID() == null ? other.getFLIGHT_ID() == null : this.getFLIGHT_ID().equals(other.getFLIGHT_ID()))
                && (this.getBORT() == null ? other.getBORT() == null : this.getBORT().equals(other.getBORT()))
                && (this.getMBOR() == null ? other.getMBOR() == null : this.getMBOR().equals(other.getMBOR()))
                && (this.getTBRT() == null ? other.getTBRT() == null : this.getTBRT().equals(other.getTBRT()))
                && (this.getMTBR() == null ? other.getMTBR() == null : this.getMTBR().equals(other.getMTBR()))
                && (this.getLBDT() == null ? other.getLBDT() == null : this.getLBDT().equals(other.getLBDT()))
                && (this.getMLBD() == null ? other.getMLBD() == null : this.getMLBD().equals(other.getMLBD()))
                && (this.getPOKT() == null ? other.getPOKT() == null : this.getPOKT().equals(other.getPOKT()))
                && (this.getMPOK() == null ? other.getMPOK() == null : this.getMPOK().equals(other.getMPOK()))
                && (this.getFCES() == null ? other.getFCES() == null : this.getFCES().equals(other.getFCES()))
                && (this.getFCEE() == null ? other.getFCEE() == null : this.getFCEE().equals(other.getFCEE()))
                && (this.getFCRS() == null ? other.getFCRS() == null : this.getFCRS().equals(other.getFCRS()))
                && (this.getFCRE() == null ? other.getFCRE() == null : this.getFCRE().equals(other.getFCRE()))
                && (this.getMCES() == null ? other.getMCES() == null : this.getMCES().equals(other.getMCES()))
                && (this.getMCEE() == null ? other.getMCEE() == null : this.getMCEE().equals(other.getMCEE()))
                && (this.getMCRS() == null ? other.getMCRS() == null : this.getMCRS().equals(other.getMCRS()))
                && (this.getMCRE() == null ? other.getMCRE() == null : this.getMCRE().equals(other.getMCRE()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTIME_ID() == null) ? 0 : getTIME_ID().hashCode());
        result = prime * result + ((getFLIGHT_ID() == null) ? 0 : getFLIGHT_ID().hashCode());
        result = prime * result + ((getBORT() == null) ? 0 : getBORT().hashCode());
        result = prime * result + ((getMBOR() == null) ? 0 : getMBOR().hashCode());
        result = prime * result + ((getTBRT() == null) ? 0 : getTBRT().hashCode());
        result = prime * result + ((getMTBR() == null) ? 0 : getMTBR().hashCode());
        result = prime * result + ((getLBDT() == null) ? 0 : getLBDT().hashCode());
        result = prime * result + ((getMLBD() == null) ? 0 : getMLBD().hashCode());
        result = prime * result + ((getPOKT() == null) ? 0 : getPOKT().hashCode());
        result = prime * result + ((getMPOK() == null) ? 0 : getMPOK().hashCode());
        result = prime * result + ((getFCES() == null) ? 0 : getFCES().hashCode());
        result = prime * result + ((getFCEE() == null) ? 0 : getFCEE().hashCode());
        result = prime * result + ((getFCRS() == null) ? 0 : getFCRS().hashCode());
        result = prime * result + ((getFCRE() == null) ? 0 : getFCRE().hashCode());
        result = prime * result + ((getMCES() == null) ? 0 : getMCES().hashCode());
        result = prime * result + ((getMCEE() == null) ? 0 : getMCEE().hashCode());
        result = prime * result + ((getMCRS() == null) ? 0 : getMCRS().hashCode());
        result = prime * result + ((getMCRE() == null) ? 0 : getMCRE().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", TIME_ID=").append(TIME_ID);
        sb.append(", FLIGHT_ID=").append(FLIGHT_ID);
        sb.append(", BORT=").append(BORT);
        sb.append(", MBOR=").append(MBOR);
        sb.append(", TBRT=").append(TBRT);
        sb.append(", MTBR=").append(MTBR);
        sb.append(", LBDT=").append(LBDT);
        sb.append(", MLBD=").append(MLBD);
        sb.append(", POKT=").append(POKT);
        sb.append(", MPOK=").append(MPOK);
        sb.append(", FCES=").append(FCES);
        sb.append(", FCEE=").append(FCEE);
        sb.append(", FCRS=").append(FCRS);
        sb.append(", FCRE=").append(FCRE);
        sb.append(", MCES=").append(MCES);
        sb.append(", MCEE=").append(MCEE);
        sb.append(", MCRS=").append(MCRS);
        sb.append(", MCRE=").append(MCRE);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}